<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
          <title>akka.dispatch.Futures</title>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link type="text/css" media="screen" rel="stylesheet" href="../../lib/template.css" />
      <script type="text/javascript" src="../../lib/jquery.js"></script>
      <script type="text/javascript" src="../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../lib/template.js"></script>
      <script type="text/javascript" src="../../lib/tools.tooltip.js"></script>
    
        </head>
        <body class="value">
      <div id="definition">
        <img src="../../lib/object_big.png" />
        <p id="owner"><a name="akka" class="extype" href="../package.html">akka</a>.<a name="akka.dispatch" class="extype" href="package.html">dispatch</a></p>
        <h1>Futures</h1>
      </div>

      <h4 class="signature" id="signature">
      <span class="kind">object</span>
      <span class="symbol">
        <span class="name">Futures</span>
        
        <span class="result"> extends AnyRef</span>
      </span>
      </h4>
      
          <div class="fullcommenttop" id="comment"><div class="comment cmt"><p>Futures is the Java API for Futures and Promises
</p></div><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent">AnyRef, <span name="scala.Any" class="extype">Any</span></div>
        </div></div>
        

      <div id="template">

        <div id="mbrsel">
          <div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
          <div id="order">
                <span class="filtertype">Ordering</span>
                <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
              </div>
          <div id="ancestors">
                <span class="filtertype">Inherited</span>
                <ol><li class="hideall out"><span>Hide All</span></li>
                <li class="showall in"><span>Show all</span></li></ol>
                <ol id="linearization"><li name="akka.dispatch.Futures" class="in"><span>Futures</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
              </div>
          <div id="visbl">
              <span class="filtertype">Visibility</span>
              <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
            </div>
        </div>

        

        

        

        <div class="values members" id="values">
              <h3>Value Members</h3>
              <ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
      <a id="!=(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">##</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
      <a id="==(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#==" data-isabs="false">
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">asInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#blocking" data-isabs="false">
      <a id="blocking():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">blocking</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Signals that the current thread of execution will potentially engage
an action that will take a non-trivial amount of time, perhaps by using blocking.</p><div class="fullcomment"><div class="comment cmt"><p>Signals that the current thread of execution will potentially engage
an action that will take a non-trivial amount of time, perhaps by using blocking.IO or using a lot of CPU time,
giving the system a chance to spawn new threads, reuse old threads or otherwise,
to prevent starvation and/or unfairness.</p><p>Assures that any Future tasks initiated in the current thread will be
executed asynchronously, including any tasks currently queued to be
executed in the current thread. This is needed if the current task may
block, causing delays in executing the remaining tasks which in some
cases may cause a deadlock.</p><p>Usage: Call this method in a callback (map, flatMap etc also count) to a Future,
if you will be doing blocking in the callback.</p><p>Note: Calling 'Await.result(future)' or 'Await.ready(future)' will automatically trigger this method.</p></div></div>
    </li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">clone</span>
        
        <span class="params">()</span><span class="result">: AnyRef</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">eq</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">equals</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#failed" data-isabs="false">
      <a id="failed[T](Throwable,ExecutionContext):Promise[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">failed</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="exception">exception: Throwable</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Promise" class="extype" href="Promise.html">Promise</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API, creates an already completed Promise with the specified exception
</p>
    </li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">finalize</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#find" data-isabs="false">
      <a id="find[T&lt;:AnyRef](Iterable[Future[T]],Function[T, Boolean],ExecutionContext):Future[Option[T]]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">find</span>
        <span class="tparams">[<span name="T">T &lt;: AnyRef</span>]</span>
        <span class="params">(<span name="futures">futures: <span name="java.lang.Iterable" class="extype">Iterable</span>[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>, <span name="predicate">predicate: <a name="akka.japi.Function" class="extype" href="../japi/Function.html">Function</a>[T, <span name="java.lang.Boolean" class="extype">Boolean</span>]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[<a name="akka.japi.Option" class="extype" href="../japi/Option.html">Option</a>[T]]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API.</p><div class="fullcomment"><div class="comment cmt"><p>Java API.
Returns a Future that will hold the optional result of the first Future with a result that matches the predicate
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#firstCompletedOf" data-isabs="false">
      <a id="firstCompletedOf[T&lt;:AnyRef](Iterable[Future[T]],ExecutionContext):Future[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">firstCompletedOf</span>
        <span class="tparams">[<span name="T">T &lt;: AnyRef</span>]</span>
        <span class="params">(<span name="futures">futures: <span name="java.lang.Iterable" class="extype">Iterable</span>[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API.</p><div class="fullcomment"><div class="comment cmt"><p>Java API.
Returns a Future to the result of the first future in the list that is completed
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#fold" data-isabs="false">
      <a id="fold[T&lt;:AnyRef, R&lt;:AnyRef](R,Iterable[Future[T]],Function2[R, T, R],ExecutionContext):Future[R]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">fold</span>
        <span class="tparams">[<span name="T">T &lt;: AnyRef</span>, <span name="R">R &lt;: AnyRef</span>]</span>
        <span class="params">(<span name="zero">zero: R</span>, <span name="futures">futures: <span name="java.lang.Iterable" class="extype">Iterable</span>[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>, <span name="fun">fun: <a name="akka.japi.Function2" class="extype" href="../japi/Function2.html">Function2</a>[R, T, R]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[R]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API
A non-blocking fold over the specified futures, with the start value of the given zero.</p><div class="fullcomment"><div class="comment cmt"><p>Java API
A non-blocking fold over the specified futures, with the start value of the given zero.
The fold is performed on the thread where the last future is completed,
the result will be the first failure of any of the futures, or any failure in the actual fold,
or the result of the fold.
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#future" data-isabs="false">
      <a id="future[T](Callable[T],ExecutionContext):Future[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">future</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="body">body: <span name="java.util.concurrent.Callable" class="extype">Callable</span>[T]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API, equivalent to Future.</p><div class="fullcomment"><div class="comment cmt"><p>Java API, equivalent to Future.apply
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
      <a id="getClass():java.lang.Class[_]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">getClass</span>
        
        <span class="params">()</span><span class="result">: java.lang.Class[_]</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">hashCode</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">isInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">ne</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">notify</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">notifyAll</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#promise" data-isabs="false">
      <a id="promise[T](ExecutionContext):Promise[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">promise</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Promise" class="extype" href="Promise.html">Promise</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API, equivalent to Promise.</p><div class="fullcomment"><div class="comment cmt"><p>Java API, equivalent to Promise.apply
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#reduce" data-isabs="false">
      <a id="reduce[T&lt;:AnyRef, R&gt;:T](Iterable[Future[T]],Function2[R, T, R],ExecutionContext):Future[R]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">reduce</span>
        <span class="tparams">[<span name="T">T &lt;: AnyRef</span>, <span name="R">R &gt;: T</span>]</span>
        <span class="params">(<span name="futures">futures: <span name="java.lang.Iterable" class="extype">Iterable</span>[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[T]]</span>, <span name="fun">fun: <a name="akka.japi.Function2" class="extype" href="../japi/Function2.html">Function2</a>[R, T, R]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[R]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API.</p><div class="fullcomment"><div class="comment cmt"><p>Java API.
Initiates a fold over the supplied futures where the fold-zero is the result value of the Future that's completed first
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#sequence" data-isabs="false">
      <a id="sequence[A](Iterable[Future[A]],ExecutionContext):Future[Iterable[A]]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">sequence</span>
        <span class="tparams">[<span name="A">A</span>]</span>
        <span class="params">(<span name="in">in: <span name="java.lang.Iterable" class="extype">Iterable</span>[<a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[A]]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[<span name="java.lang.Iterable" class="extype">Iterable</span>[A]]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API.</p><div class="fullcomment"><div class="comment cmt"><p>Java API.
Simple version of Future.traverse. Transforms a JIterable[Future[A]] into a Future[JIterable[A]].
Useful for reducing many Futures into a single Future.
</p></div></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#successful" data-isabs="false">
      <a id="successful[T](T,ExecutionContext):Promise[T]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">successful</span>
        <span class="tparams">[<span name="T">T</span>]</span>
        <span class="params">(<span name="result">result: T</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Promise" class="extype" href="Promise.html">Promise</a>[T]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API, Creates an already completed Promise with the specified result
</p>
    </li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
      <a id="synchronized[T0](⇒ T0):T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">synchronized</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#toString" data-isabs="false">
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">toString</span>
        
        <span class="params">()</span><span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="akka.dispatch.Futures#traverse" data-isabs="false">
      <a id="traverse[A, B](Iterable[A],Function[A, Future[B]],ExecutionContext):Future[Iterable[B]]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">traverse</span>
        <span class="tparams">[<span name="A">A</span>, <span name="B">B</span>]</span>
        <span class="params">(<span name="in">in: <span name="java.lang.Iterable" class="extype">Iterable</span>[A]</span>, <span name="fn">fn: <a name="akka.japi.Function" class="extype" href="../japi/Function.html">Function</a>[A, <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[B]]</span>, <span name="executor">executor: <a name="akka.dispatch.ExecutionContext" class="extype" href="ExecutionContext.html">ExecutionContext</a></span>)</span><span class="result">: <a name="akka.dispatch.Future" class="extype" href="Future.html">Future</a>[<span name="java.lang.Iterable" class="extype">Iterable</span>[B]]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Java API.</p><div class="fullcomment"><div class="comment cmt"><p>Java API.
Transforms a JIterable[A] into a Future[JIterable[B]] using the provided Function A ⇒ Future[B].
This is useful for performing a parallel map. For example, to apply a function to all items of a list
in parallel.
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol">
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li></ol>
            </div>

        

        <div name="scala.AnyRef" class="parent">
              <h3>Inherited from AnyRef</h3>
            </div><div name="scala.Any" class="parent">
              <h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
            </div>

      </div>

      <div id="tooltip"></div>

    </body>
      </html>